# 要求最低CMake版本
cmake_minimum_required(VERSION 3.15)
# 项目名称
project(communication)
# C++ 标准
#set(CMAKE_CXX_STANDARD 17)
# 输出目录，${PROJECT_BINARY_DIR}为Cmake命令执行的位置
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
# 添加子目录，子目录下必须有 CMakeList.txt
add_subdirectory(examples)
add_subdirectory(cmake)